﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Entity
{
    public class FieldDataType : EntityBase
    {
        [Display(Name = "表单字段数据类型名称")]
        public string Name { get; set; }
    }

    public class Field : EntityBase
    {
        [Display(Name = "流程名称"),Required]
        public int? WorkflowID { get; set; }
        public virtual Workflow Workflow { get; set; }

        [Display(Name = "表单字段名称")]
        public string Name { get; set; }

        [Display(Name = "表单级别")]
        public int Level { get; set; }

        [Display(Name = "是否必填")]
        public bool IsMustFill { get; set; }

        [Display(Name = "表单字段数据类型名称:如果不设，则为字符串")]
        public int? FieldDataTypeID { get; set; }
        public virtual FieldDataType FieldDataType { get; set; }
    }
}